package javase2.day06.demo02;

public class ThreadZi extends Thread{

    public ThreadZi() {
    }

    //设置线程名称的第二种方式：通过构造方法设置
    public ThreadZi(String name) {
        super(name);
    }

    @Override
    public void run() {


        System.out.println(Thread.currentThread().getName());

    }
}
